#ifndef TEXTURE_H
#define TEXTURE_H

#include <string>
#include <SDL/SDL.h>

using namespace std;

struct scale
{
	float xscale, yscale;
};

scale SizeTextTexture(string text, int* x, int* y);
scale BindImageTexture(string name);
scale BindTextTexture(string text);
void ClearImageTexture(string name);
void ClearTextTexture(string text);
void ClearAllTextures();
void initTexture();
void finiTexture();

class Texture
{
public:
	Texture(SDL_Surface* surf);
	~Texture();
	void Bind();
	void Render(float x1, float y1, float x1, float y2);
	scale Scale();

protected:

private:
	int tex_num;
	float xscale, yscale;
};

Texture* TexturefromImage(string name);
Texture* TexturefromText(string s);

#endif

